package net.xuele.learn.spring.bean;

import javax.annotation.PostConstruct;

/**
 * @Author: yubo
 * @date: 15:44 2020/6/8
 * @Description: 类描述
 */

public class BeanA {

    private BeanB beanB;

    public void setBeanB(BeanB beanB) {
        this.beanB = beanB;
    }

    public void fun() {
        System.out.println("beanA的fun方法被调用");
    }

    @PostConstruct
    public void init() {
        System.out.println("----------");
    }
}
